//
//  Kingfisher+Extension.swift
//  globalcarbusiness
//
//  Created by dongzhenyu on 2017/8/18.
//  Copyright © 2017年 dongzhenyu. All rights reserved.
//

import UIKit
import Kingfisher

extension UIImageView {
    
    public func setImage(_ URLString: String?, _ placeHolderName: String?) {
        guard let urlString = URLString else {
            return
        }
        
        guard let placeHolder = placeHolderName else {
            return
        }
        
        guard let URL = URL(string: urlString) else {
            return
        }
        
        kf.setImage(with: URL, placeholder: UIImage(named: placeHolder))
        
    }
    
}
